﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="FunctionDefinedInfo.aspx.cs" Inherits="Honestysoft.Baseframework.WebUI.SystemManage.Init.FunctionDefinedInfo" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../../Styles/control.css" rel="stylesheet" type="text/css" />
    <script language="javascript" type="text/javascript">
        function openDialog() {
            var obj = new Object();
            obj.name = "新增子功能";
            var retValue = window.showModalDialog('<%=Honestysoft.Baseframework.WebUI.Globals.Home %>Scripts/ShowDlg.aspx?url=<%=Honestysoft.Baseframework.WebUI.Globals.Home %>' + 'SystemManage/Init/FunctionDefinedEdit.aspx?ParentID=<%=Request["ID"]+"" %>', obj, 'scroll:0;status:0;help:1;resizable:0;dialogWidth:500px;dialogHeight:400px');
            if (typeof (retValue) != "undefined" && retValue != null && retValue) {
                window.location.href = window.location.href;
                window.parent.addNode(retValue.split('|')[0], retValue.split('|')[1]);
            }
        }
        function openDialog2() {
            var obj = new Object();
            obj.name = "修改功能";
            var retValue = window.showModalDialog('<%=Honestysoft.Baseframework.WebUI.Globals.Home %>Scripts/ShowDlg.aspx?url=<%=Honestysoft.Baseframework.WebUI.Globals.Home %>' + 'SystemManage/Init/FunctionDefinedEdit.aspx?ID=<%=Request["ID"]+"" %>', obj, 'scroll:0;status:0;help:1;resizable:0;dialogWidth:500px;dialogHeight:400px');
            if (typeof (retValue) != "undefined" && retValue != null && retValue) {
                window.location.href = window.location.href;
                window.parent.editSelectedNode(retValue.split('|')[1]);
            }
        }
    </script>
</head>
<body style="margin-top:0px;">
    <form id="form1" runat="server">

        <ul id="maintab" class="shadetabs">
        <li class="selected"><a href="#default" >详细信息</a></li>
        <li><a href="Sys_Functions_List.aspx?ID=<%=Request["ID"] %>"  >下级功能列表</a></li>
        </ul>

        <div id="ajaxcontentarea" class="contentstyle">

        <div class="button_area">
                <asp:Button runat="server" ID="btnNew" Text="新增子功能"  CssClass="btn_big_normal" onmouseover="this.className='btn_big_active'" onmouseout="this.className='btn_big_normal'" OnClientClick="openDialog();return false;" />               
                &nbsp;
                <asp:Button runat="server" ID="btnEdit" Text="修改"  CssClass="btn_normal" onmouseover="this.className='btn_active'" onmouseout="this.className='btn_normal'" OnClientClick="openDialog2();return false;" />               
                &nbsp;
                <asp:Button runat="server" ID="btnDelete" CssClass="btn_normal" 
                    onmouseover="this.className='btn_active'" 
                    onmouseout="this.className='btn_normal'" Height="20" Text="删除"  OnClientClick="return confirm('删除此功能节点将同时删除其下面的子功能节点，是否继续？');"
                    onclick="btnDelete_Click" />
                &nbsp;<asp:Button runat="server" ID="btnActive" CssClass="btn_normal" 
                    onmouseover="this.className='btn_active'" 
                    onmouseout="this.className='btn_normal'"  Height="20" Text="启用" 
                    onclick="btnActive_Click" />
                &nbsp;<asp:Button runat="server" ID="btnCancel" CssClass="btn_normal" 
                    onmouseover="this.className='btn_active'" 
                    onMouseOut="this.className='btn_normal'"  Height="20" Text="禁用" 
                    onclick="btnCancel_Click" />
            </div>

       <table cellpadding="0" width="94%" cellspacing="3" border="0" class="tInfo" >
            <tr>
                <td style="width:80px;" class="title3">功能名称：</td>
                <td class="lableline"><%=_FuncName %></td>
                <td style="width:80px" class="title3">英文名：</td>
                <td class="lableline"><%=_FuncEName %></td>
            </tr>
            <tr>
                <td class="title3">功能类型：</td>
                <td class="lableline"><%=_FunctionType %></td>
                <td class="title3">上级功能：</td>
                <td class="lableline"><%=_ParentID%></td>
            </tr>
            <tr>
                <td  class="title3">是否有效：</td>
                <td class="lableline"><%=_IsValid %></td>
                <td class="title3">排序号：</td>
                <td class="lableline"><%=_SortCode %></td>
            </tr>
            <tr>
                <td class="title3">URI：</td>
                <td colspan="3"  class="lableline"><%=_URI %></td>
            </tr>
            <tr>
                <td class="title3">功能描述：</td>
                <td colspan="3"  class="lableline"><%=_FuncDesc %></td>
            </tr>
        </table>

        </div>
    </form>
</body>
</html>
